package com.five.api.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.five.entity.CourseComment;
import com.five.entity.User;

import java.util.List;

/**
 * <p>
 * 课程评论表 服务类
 * </p>
 *
 * @author star
 * @since 2021-06-16
 */
public interface CourseCommentService extends IService<CourseComment> {

    /**
     * 查询课程评论
     * @param courseId
     * @return
     */
    List<CourseComment> selectCourseContent(Integer courseId);

    /**
     * 提交评论
     * @param content
     * @param courseId
     * @param userId
     */
    int insertCourseComment(String content,Long courseId,Long userId);

    /**
     * 通过用户名查询用户ID
     * @param username
     * @return
     */
    User selUserIdByUserName(String username);
}
